This means we only have to deal with a single entry point for
eslint, plus we get the option to produce fancy MR reports.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3746>
- .fdo.distribution-image@fedora
- .gnome-shell.fedora
stage: review
+ variables:
+ LINT_LOG: "eslint-docs-report.xml"
script:
- - export NODE_PATH=$(npm root -g)
- - ./.gitlab-ci/eslint-coding-style.sh
+ - ./.gitlab-ci/eslint-coding-style.sh --output-file ${LINT_LOG} --format junit --stdout
+ artifacts:
+ reports:
+ junit: ${LINT_LOG}
+ when: always
potfile-c-check:
extends:
extract_js_snippets(input_file, output_dir)
EOF
-eslint \
- --rule 'no-undef: off' \
- --rule 'no-unused-vars: off' \
- --rule 'no-invalid-this: off' $OUTDIR/*.js
+echo Checking coding style of coding style docs
+tools/run-eslint.sh "$@" $OUTDIR